# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Jeff Pohlmeyer <yetanothergeek@gmail.com>
# Maintainer: Jeff Pohlmeyer <yetanothergeek@gmail.com>
pkgname=jwm
pkgver=2.4.2
pkgrel=0
pkgdesc="A lightweight window manager for the X11 Window System"
options="!check" # No testsuite
url="http://joewing.net/projects/jwm/"
# s390x and riscv64 blocked by librsvg
arch="all !s390x !riscv64"
license="MIT"
makedepends="libx11-dev libxext-dev libxft-dev libxmu-dev libxinerama-dev
	libxpm-dev libxrender-dev libjpeg-turbo-dev libpng-dev librsvg-dev
	pango-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/joewing/jwm/releases/download/v$pkgver/jwm-$pkgver.tar.xz"

prepare() {
	default_prepare
	# not replaced for some reason..
	sed -i "s|@mkdir_p@|mkdir -p|g" \
		po/Makefile.in.in
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-rpath
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
2669c3e2ab2d9a5539d02559108a2bc601bb2209de03dc15057a65c14b5e1268cc58009f4102c4d90302c0705ada5578997a3644c736a46a7e8cf13766cc92fe  jwm-2.4.2.tar.xz
"
